/**
 * @author YinHang
 */
;(function () {
	//配置Ajax调用的Action
	//url: 地址 前边全部加上 path
	//params: 我给你传的各个参数的名称，只可修改名称不可自行添加或者删除，如需要请告知前端修改程序。
	//data: 你给我的json数据中的部分参数名称,要求同params.
	window.ACTIONS = {
		MY_MISSION_LIST_WAIT_PROCESS: {	//我的任务列表-代办
			url: path + "/web/getMyTaskListByPageAction.action?showItem=todoTask",
			params: {
				SORT: "sort",
				SORT_METHOD: "sortMethod",
				SEARCH: "searchCond",
				ADVANCED: "searchType",
				PAGE_SIZE: "page.pageSize",
				PAGE: "page.pageNo"
			},
			data: {
				RECORD_COUNT: "totalCount",
				PAGE_SIZE: "pageSize"
			}
		},
		MY_MISSION_LIST_ORIGINATE: {	//我的任务列表-发起
			url: path + "/web/getMyTaskListByPageAction.action?showItem=originatedTask",
			params: {
				SORT: "sort",
				SORT_METHOD: "sortMethod",
				SEARCH: "searchCond",
				ADVANCED: "searchType",
				PAGE_SIZE: "page.pageSize",
				PAGE: "page.pageNo"
			},
			data: {
				RECORD_COUNT: "totalCount",
				PAGE_SIZE: "pageSize"
			}
		},
		MY_MISSION_LIST_PROCESSED: {	//我的任务列表-处理过的
			url: path + "/web/getMyTaskListByPageAction.action?showItem=handledTask",
			params: {
				SORT: "sort",
				SORT_METHOD: "sortMethod",
				SEARCH: "searchCond",
				ADVANCED: "searchType",
				PAGE_SIZE: "page.pageSize",
				PAGE: "page.pageNo"
			},
			data: {
				RECORD_COUNT: "totalCount",
				PAGE_SIZE: "pageSize"
			}
		},
		UNDERLING_MISSION_LIST: {	//下属任务列表
			url: path + "/web/getUnderlingTaskByPageAction.action",
			params: {
				SORT: "sort",
				SORT_METHOD: "sortMethod",
				SEARCH: "searchCond",
				ADVANCED: "searchType",
				PAGE_SIZE: "page.pageSize",
				PAGE: "page.pageNo"
			},
			data: {
				RECORD_COUNT: "totalCount",
				PAGE_SIZE: "pageSize"
			}
		},
 
		CHECK_REPORT_LIST: {	//上报审核列表
			url: path + "/web/listReportingAction.action?type=approval",
			params: {
				SORT: "sort",
				SORT_METHOD: "sortMethod",
				SEARCH: "searchCond",
				ADVANCED: "searchType",
				PAGE_SIZE: "page.pageSize",
				PAGE: "page.pageNo"
			},
			data: {
				RECORD_COUNT: "totalCount",
				PAGE_SIZE: "pageSize"
			}
		},
		REPORT_LIST: {	//上报数据列表
			url: path + "/web/listReportingAction.action?type=reporting",
			params: {
				SORT: "sort",
				SORT_METHOD: "sortMethod",
				SEARCH: "searchCond",
				ADVANCED: "searchType",
				PAGE_SIZE: "page.pageSize",
				PAGE: "page.pageNo"
			},
			data: {
				RECORD_COUNT: "totalCount",
				PAGE_SIZE: "pageSize"
			}
		},
		REPORT_INQUIRY_LIST: {	//上报数据查询列表
			url: path + "/web/listReportingAction.action?type=all",
			params: {
				SORT: "sort",
				SORT_METHOD: "sortMethod",
				SEARCH: "searchCond",
				ADVANCED: "searchType",
				PAGE_SIZE: "page.pageSize",
				PAGE: "page.pageNo"
			},
			data: {
				RECORD_COUNT: "totalCount",
				PAGE_SIZE: "pageSize"
			}
		},
		 
	   
		TASK_ACCOUNT_BOOK: {	//任务-获取可共享用户列表
			url: path + "/web/getDelegateUserInfoIdAction.action",
			params: {
				
			},
			data: {
				
			}
		},
		GET_RELATION_TASK: {	//任务-获取业务的任务列表
			url: path + "/web/getRelationTaskAction.action",
			params: {
				BUSINESS_ID: "dataValueId"
			},
			data: {
				
			}
		},
		
		//公文开始
		
		DOCUMENT_LIST_UNPROCESSED: {	//公文办理列表-未处理
			url: path + "/web/getPageApprovingGdAction?isUnDealed=UNDO",
			params: {
				SORT: "sort",
				SORT_METHOD: "sortMethod",
				SEARCH: "condition",
				ADVANCED: "isHighSearched",
				PAGE_SIZE: "pageSize",
				PAGE: "pageNo"
			},
			data: {
				RECORD_COUNT: "pageCount",
				PAGE_SIZE: "pageSize"
			}
		},
		DOCUMENT_LIST_PROCESSED: {	//公文办理列表-已处理
			url: path + "/web/getPageApprovingGdAction?isUnDealed=DID",
			params: {
				SORT: "sort",
				SORT_METHOD: "sortMethod",
				SEARCH: "condition",
				ADVANCED: "isHighSearched",
				PAGE_SIZE: "pageSize",
				PAGE: "pageNo"
			},
			data: {
				RECORD_COUNT: "pageCount",
				PAGE_SIZE: "pageSize"
			}
		},
		MY_DOCBOX_LIST: {	//我的文件柜
			url: path + "/web/getPageTempGdAction",
			params: {
				SORT: "sort",
				SORT_METHOD: "sortMethod",
				SEARCH: "condition",
				ADVANCED: "isHighSearched",
				PAGE_SIZE: "pageSize",
				PAGE: "pageNo"
			},
			data: {
				RECORD_COUNT: "pageCount",
				PAGE_SIZE: "pageSize"
			}
		},
		SHARE_DOCBOX_LIST: {	//共享文件柜
			url: path + "/web/getPageShareGdAction",
			params: {
				SORT: "sort",
				SORT_METHOD: "sortMethod",
				SEARCH: "condition",
				ADVANCED: "isHighSearched",
				PAGE_SIZE: "pageSize",
				PAGE: "pageNo"
			},
			data: {
				RECORD_COUNT: "pageCount",
				PAGE_SIZE: "pageSize"
			}
		},
		SAVED_DOCBOX_LIST: {	//归档文件柜
			url: path + "/web/getPageArchivedGdAction",
			params: {
			    SORT: "sort",
			    SORT_METHOD: "sortMethod",
			    SEARCH: "condition",
			    ADVANCED: "isHighSearched",
			    PAGE_SIZE: "pageSize",
			    PAGE: "pageNo"
			},
			data: {
				RECORD_COUNT: "pageCount",
				PAGE_SIZE: "pageSize"
			}
		},
		RB_DOCBOX_LIST: {	//回收文件柜
			url: path + "/web/getPageRecoverGdAction",
			params: {
				SORT: "sort",
				SORT_METHOD: "sortMethod",
				SEARCH: "condition",
				ADVANCED: "isHighSearched",
				PAGE_SIZE: "pageSize",
				PAGE: "pageNo"
			},
			data: {
				RECORD_COUNT: "pageCount",
				PAGE_SIZE: "pageSize"
			}
		},
		OP_RECORD_LIST: {	//公文-操作记录列表
			url: path + "/web/viewGovVersionsAction",
			params: {
				DOC_ID: "gdId"
			},
			data: {
				
			}
		},
		COMMENT_DETAIL: {	//审批详细
			url: path + "/web/getListGdOperationRecordAction",
			params: {
				DOC_ID: "gdId"
			},
			data: {
				
			}
		},
 
		PRE_COMMENT_SUBMIT: {	//提交审批 前
			url: path + "/web/preSubmitApprovingGdAction",
			params: {
			DOC_ID: "gdId"
		},
		data: {
			
		}
		},
 
		SHARE_DOC: {	//公文-共享文件
 
			url: path + "/data/opresult.json",
			params: {
				DOC_ID: "shareGdDTO.gdId"
			},
			data: {
				
			}
		},
		 CANCEL_SHARE_DOC: {	//公文-取消共享
			url: path + "/web/removeShareGdAction",
			params: {
				DOC_ID: "govDocId"
			},
			data: {
				
			}
		},
		RECOVER_DOC: {	//公文-删除文件
			url: path + "/web/recoverGdAction",
			params: {
				DOC_ID: "govDocId"
			},
			data: {
				
			}
		},
		REVERT_DOC: {	//公文-恢复文件
			url: path + "/web/restoreGdAction",
			params: {
				DOC_ID: "govDocId"
			},
			data: {
				
			}
		},
		DELETE_DOC: {	//公文-彻底删除文件
			url: path + "/web/removeGdAction",
			params: {
				DOC_ID: "govDocId"
			},
			data: {
				
			}
		},

		DOC_TEMPLATE_LIST: {	//公文-获取模板列表
			url: path + "/data/doc_template.json",
			params: {
				
			},
			data: {
				
			}
		},
		ACCOUNT_BOOK: {	//公文-获取可共享用户列表
			url: path + "/web/getListUserInfoAction",
			params: {
				
			},
			data: {
				
			}
		},
		LOG_LIST: {	//日志列表
			url: path + "/web/getPageLogContentAction",
			params: {
				SORT: "sort",
				SORT_METHOD: "sortMethod",
				SEARCH: "searchString",
				ADVANCED: "searchFlg",
				PAGE_SIZE: "pageSize",
				PAGE: "pageNo"
			},
			data: {
				RECORD_COUNT: "page.totalCount",
				PAGE_SIZE: "page.pageSize"
			}
		},
		ROLE_LIST: {	//角色列表
			url: path + "/web/getPageRoleAction",
			params: {
				SORT: "sort",
				SORT_METHOD: "sortMethod",
				SEARCH: "searchString",
				ADVANCED: "",
				PAGE_SIZE: "page.pageSize",
				PAGE: "page.pageNo"
			},
			data: {
				RECORD_COUNT: "page.totalCount",
				PAGE_SIZE: "page.pageSize"
			}
		},
		ORG_DETAIL: {	//获取机构详细
			url: path + "/ajax/getOrganizationDetailAction.action",
			params: {
				ORG_ID: "orgId",
				VERSION: "version"
			}
		},
		MOVE_ORG: {	//移动机构
			url: path + "/ajax/updateOrgOrderIndexAction.action",
			params: {
				PREV_ORG_ID: "toId",
				ORG_ID: "orgDTO.orgId",
				VERSION: "version"
			}
		},
		DEL_ORG: {	//删除机构
			url: path + "/ajax/deleteOrganizationAction.action",
			params: {
				ORG_ID: "orgDTO.orgId",
				VERSION: "orgDTO.version",
			    ORG_SHORTNAME:"orgDTO.orgShortName"
			}
		},
		EDIT_ORG: {		//编辑机构
			url: path + "/ajax/modifyOrganizationInfoAction.action",
			params: {
				ORG_ID: "orgId",
				VERSION: "version"
			}
		},
		ADD_ORG: {	//添加机构
			url: path + "/ajax/addEQLevelOrganizationAction.action",
			params: {
				PREV_ORG_ID: "organizationDTO.orgId",
				VERSION: "version"
			},
			data: {
				NEW_ORG_ID: "orgId"
			}
		},
		ADD_CHILD_ORG: {	//添加子机构
			url: path + "/ajax/addChildOrganizationAction.action",
			params: {
				PARENT_ORG_ID: "parentId",
				VERSION: "version"
			},
			data: {
				NEW_ORG_ID: "orgId"
			}
		},
		DEL_DATA: {	//删除数据字典项
			url: path + "/web/deleteDataValueAction.action",
			params: {
				DATA_ID: "detailData.dataValueId",
				VERSION: "detailData.version",
				DATA_VALUE: "detailData.value",
				DATA_KEY: "detailData.key"
			}
		},
		GET_DATA_LIST: {
			url: path + "/web/findDataValuesByEntryIdAction.action",
			params: {
				ENTRY_ID: "entryId"
			}
		},
		DATA_DICT_LIST: {	//数据字典列表
			url: path + "/web/listDataEntriesAction.action",
			params: {
				SORT: "sort",
				SORT_METHOD: "sortMethod",
				SEARCH: "searchString",
				ADVANCED: "searchType",
				PAGE_SIZE: "page.pageSize",
				PAGE: "page.pageNo"
			},
			data: {
				RECORD_COUNT: "page.totalCount",
				PAGE_SIZE: "page.pageSize"
			}
		},
		ADD_DATA_ITEM: {	//添加数据字典项
			url: path + "/web/addDataValueAction.action",
			params: {
				
			},
			data: {
				NEW_DATA_ID: "newDataValueId"
			}
		},
		EDIT_DATA: {		//编辑数据字典 项
			url: path + "/web/updateDataValueAction.action",
			params: {
				DATA_ID: "detailData.dataValueId",
				VERSION: "detailData.version"
			}
		},
		DATA_DETAIL: {	//获取数据字典项详细信息
			url: path + "/web/dataValueDetailAction.action",
			params: {
				DATA_ID: "detailData.dataValueId",
				VERSION: "detailData.version"
			}
		},
		MOVE_DATA: {	//移动数据字典项
			url: path + "/web/moveDataValueAction.action",
			params: {
				PREV_DATA_ID: "toId",
				DATA_ID: "detailData.dataValueId",
				VERSION: "detailData.version",
				ENTRY_ID: "detailData.entryId"
			}
		},
		AUTHRULE_LIST: {	//数据权限规则列表
			url: path + "/web/showResourcePageAction.action",
			params: {
				SORT: "sort",
				SORT_METHOD: "sortMethod",
				SEARCH: "searchCond",
				ADVANCED: "isHighSearched",
				PAGE_SIZE: "page.pageSize",
				PAGE: "page.pageNo"
			},
			data: {
				RECORD_COUNT: "page.totalCount",
				PAGE_SIZE: "page.pageSize"
			}
		},
		ACCOUNT_LIST: {	//账号列表
			url: path + "/ajax/getUserAccountListAction.action",
			params: {
				SORT: "sort",
				SORT_METHOD: "sortMethod",
				SEARCH: "searchString",
				ADVANCED: "searchType",
				PAGE_SIZE: "page.pageSize",
				PAGE: "page.pageNo"
			},
			data: {
				RECORD_COUNT: "page.totalCount",
				PAGE_SIZE: "page.pageSize"
			}
		},
		//岗位
		POSITION_LIST: {	//获取机构下的岗位列表
			url: path + "/ajax/getPositionListAction.action",
			params: {
				ORG_ID: "orgId",
				VERSION: "version"
			}
		},
		POSITION_DETAIL: {	//获取岗位详细
			url: path + "/data/commentDetail.json",
			params: {
				POSITION_ID: "positionId",
				VERSION: "version"
			}
		},
		MOVE_POSITION: {	//移动岗位
			url: path + "/ajax/updatePositionOrderIndexAction.action",
			params: {
				PREV_POSITION_ID: "toPositionId",
				POSITION_ID: "positionDTO.positionId",
				VERSION: "version"
			}
		},
		DEL_POSITION: {	//删除岗位
			url: path + "/ajax/deletePositionAction.action",
			params: {
				POSITION_ID: "positionDTO.positionId",
				VERSION: "positionDTO.version",
			    POSITION_NAME: "positionDTO.positionName"
			}
		},
		EDIT_POSITION: {		//编辑岗位
			url: path + "/ajax/modifyPositionInfoAction.action",
			params: {
				POSITION_ID: "orgId",
				VERSION: "version"
			}
		},
		ADD_POSITION: {	//添加岗位
			url: path + "/ajax/addPositionAction.action",
			params: {
				PREV_POSITION_ID: "toId",
				VERSION: "version"
			},
			data: {
				NEW_POSITION_ID: "positionId"
			}
		},
		ACCOUNTNAME_UNIQUE: {	//验证账号重复
			url: path + "/ajax/validateRepeatNameAction.action",
			params: {
				VALUE: "userAccountDTO.userAccountName"
			},
			data: {
				RESULT: "repeatNameFlag"
			}
		},
		AUTH_ORDNUMBER_UNIQUE: {	//验证规则排序号重复
			url: path + "/web/ruleOrderAction.action",
			params: {
				VALUE: "values"
			},
			data: {
				RESULT: "order"
			}
		},
		DATA_VALUE_ADD_UNIQUE: {	//添加数据字典项名称重复
			url: path + "/web/findSameValueAction.action",
			params: {
				ENTRY_ID: "entryId",
				VALUE: "value"
			},
			data: {
				RESULT: "validate"
			}
		},
		DATA_VALUE_MODIFY_UNIQUE: {	//修改数据字典项名称重复
			url: path + "/web/findSameValueExceptSelfAction.action",
			params: {
				ENTRY_ID: "entryId",
				VALUE_ID: "dataValueId",
				VALUE: "value"
			},
			data: {
				RESULT: "validate"
			}
		},
		DATA_KEY_UNIQUE: {	//添加数据字典KEY重复
			url: path + "/web/findSameKeyAction.action",
			params: {
				ENTRY_ID: "entryId",
				VALUE: "key"
			},
			data: {
				RESULT: "validate"
			}
		},
		ROLENAME_UNIQUE: {	//验证角色名称重复 
			url: path + "/web/getSameRoleNameAction.action",
			params: {
				VALUE: "role.roleName",
				ROLE_ID: "role.roleId"
			},
			data: {
				RESULT: "sameName"
			}
		},
		DELETE_ROLE: {	//删除角色
			url: path + "/web/removeRoleAction.action",
			params: {
				ROLE_ID: "role.roleId",
				ROLE_NAME: "role.roleName",
				ROLE_DESCRIPTION: "role.roleNote",
				ROLE_VERSION: "role.version"
			},
			data: {
				
			}
		},
		//机构和职位
		ORGNAME_UNIQUE: {	//添加机构名称重复验证
			url: path + "/ajax/proveAddOrganziationAction.action",
			params: {
				VALUE: "orgName",
				PARENT_ORG_ID: "parentOrgId"
			},
			data: {
				RESULT: "result"
			}
		},
		ORGSHORTNAME_UNIQUE: {	//添加机构短名称验证
			url: path + "/ajax/proveShortAddOrganizationAction.action",
			params: {
				VALUE: "orgShortName",
				PARENT_ORG_ID: "parentOrgId"
			},
			data: {
				RESULT: "result"
			}
		},
		ORGCODE_UNIQUE: {	//添加机构代码验证
			url: path + "/ajax/proveAddOrganizationCodeAction.action",
			params: {
				VALUE: "orgCode",
				PARENT_ORG_ID: "parentOrgId"
			},
			data: {
				RESULT: "result"
			}
		},
		ORGCODE_MODIFY_UNIQUE: {	//编辑机构代码验证
			url: path + "/ajax/proveUpdateOrganizationCodeAction.action",
			params: {
				VALUE: "orgCode",
				ORG_ID: "orgId"
			},
			data: {
				RESULT: "result"
			}
		},
		
		ORGNAME_MODIFY_UNIQUE: {	//更新机构名称验证
			url: path + "/ajax/proveUpdateOrganization.action",
			params: {
				VALUE: "orgName",
				ORG_ID: "orgId"
			},
			data: {
				RESULT: "result"
			}
		},
		ORGSHORTNAME_MODIFY_UNIQUE: {	//更新机构短名称验证
			url: path + "/ajax/proveShortUpdateOrganizationAction.action",
			params: {
				VALUE: "orgShortName",
				ORG_ID: "orgId"
			},
			data: {
				RESULT: "result"
			}
		},
		POSITION_MODIFY_UNIQUE: {	//更新职位名称重复验证
			url: path + "/ajax/proveUpdatePositionAction.action",
			params: {
				VALUE: "positionName",
				ORG_ID: "orgId",
				POSITION_ID: "positionId"
			},
			data: {
				RESULT: "result"
			}
		},
		POSITIONNAME_UNIQUE: {	//添加职位短名称验证
			url: path + "/ajax/proveAddPositionAction.action",
			params: {
				VALUE: "positionName",
				ORG_ID: "orgId"
			},
			data: {
				RESULT: "result"
			}
		},
		RESET_ACCOUNT_PASSWORD: {	//重置账户密码
			url: path + "/ajax/resetUserAccountPasswordAction.action",
			params: {
				ACCOUNT_ID: "userAccountDTO.userAccountId",
				VERSION: "userAccountDTO.version",
				ACCOUNT_NAME: "userAccountDTO.userAccountName"
			}
		}
	};
	
	window.TEST_MODE = false;
})();
